package com.projet.activities;

import com.projet.activities.listeners.ListenerDialogBack;
import android.app.AlertDialog;

public class DialogArrivee  extends AlertDialog.Builder
{
	

	public DialogArrivee(LabyrinthActivity act) 
	{
		super(act);
		String niv=act.get_file().substring(0, act.get_file().indexOf("."));
		int numniv=Integer.parseInt(niv.substring(6));
		setMessage("Bravooo ! vous avez fini le "+niv.substring(0, 6)+" "+numniv).setTitle("Bravoo !");						
		setNegativeButton("OK", new ListenerDialogBack(act));
		setCancelable(false);
	}
}
